/*
 * Copyright(c) YouYuan 2018.
 * https://gitee.com/you-yuan
 */

package com.yuan.ocr.demo;

import com.yuan.ocr.common.OcrConst;
import com.yuan.ocr.tess4j.Tess4jOCR;

/**
 * @author YouYuan
 * @version 1.0
 * @Email xiyousuiyuan@163.com
 * @Date 2018/10/28 17:34
 */
public class Tess4jDemo {

    public static void main(String[] args) throws Exception {
        String imagePath = "D:/Test/Develop/Yuan-OCR-Kit/Img/1-1.jpg";
        String text = Tess4jOCR.doOCR(imagePath, OcrConst.LANGUAGE_CHI_SIM);
        System.out.println(text);
    }
}
